Add `ostree admin post-copy` command
authorAlexander Larsson <alexl@redhat.com>
Mon, 13 Nov 2023 16:33:57 +0000 (17:33 +0100)
committerAlexander Larsson <alexl@redhat.com>
Tue, 14 Nov 2023 09:15:19 +0000 (10:15 +0100)
commitaccb1f0602ffcfb977030380516cee64a29285f0
treed9e7455c59ad231eeb1d5821ad68ed633d96c387
parent29973774ea325ee489511381a9207d451306ac1b
Add `ostree admin post-copy` command

This command will apply fs-verity on all objects that need it and
needs to be called when an ostree deployment has been copied on a
file-by-file basis, which would loose information such as fs-verity.

This is needed by osbuild which works by creating the final image in a
rootfs, and then separately copying that rootfs file-by-file to a
loopback mounted filesystem image.
15 files changed:
Makefile-libostree.am
Makefile-man.am
Makefile-ostree.am
apidoc/ostree-sections.txt
man/index.xml
man/ostree-admin-post-copy.xml [new file with mode: 0644]
man/ostree-admin.xml
src/libostree/libostree-devel.sym
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo-verity.c
src/libostree/ostree-sysroot-cleanup.c
src/libostree/ostree-sysroot.h
src/ostree/ot-admin-builtin-post-copy.c [new file with mode: 0644]
src/ostree/ot-admin-builtins.h
src/ostree/ot-builtin-admin.c